package com.ruoyi.shop.service.impl;

import com.ruoyi.shop.domain.GoodsImg;
import com.ruoyi.shop.mapper.GoodsImgMapper;
import com.ruoyi.shop.service.IGoodsImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsImgServiceImpl implements IGoodsImgService {
    @Autowired
    private GoodsImgMapper goodsImgMapper;

    @Override
    public List<GoodsImg> getGoodsImgList(Integer gid) {
        return goodsImgMapper.getGoodsImgList(gid);
    }

    @Override
    public Integer delGoodsImg(Integer gid) {
        return goodsImgMapper.delGoodsImg(gid);
    }

    @Override
    public Integer insertGoodsImg(GoodsImg record) {
        return goodsImgMapper.insertGoodsImg(record);
    }
}
